@extends('common')
@section('content')
<div >
<h4><a href="/manager/addUse">帐号添加</a></h4>
<hr />
<table class="table table-bordered table-hover" >

    <thead>
    <tr>
	    <th width=50px>用户名</th>
        <th width=50px>角色</th>
        <th width=100px>操作</th>
    </tr>
    </thead>
	     @foreach($info as $v)
         <tr id="{{$v['use_id']}}">
		 <td>{{$v['use_name']}}</td>
         <td>{{$v['role']}}</td>
         <td><a href="/manager/upUse?id={{$v['use_id']}}">修改</a> | <a href="javascript:void(0)" class='del'>删除</a></td>
         </tr>
		 @endforeach
</table>
</div>

<script type="text/javascript">
$(function(){


   $(".del").click(function(){
   var id=$(this).parent().parent().attr('id');
   var obj=$(this)
   $.ajax({
   type: "get",
   url: "/manager/delUse",
   data: "id="+id,
   success: function(msg){
     obj.parent().parent().remove()
   }
   });
   })
   

})

</script>







@stop


